package edu.biwu;

import javax.servlet.*;
import java.io.IOException;

/**
 * @author 王俊彪
 * @version 1.0
 */
public class ServletDemo02 implements Servlet {
    public ServletDemo02(){
        System.out.println("servletDemo02构造器被调用");
    }
    @Override
    public void init(ServletConfig servletConfig) throws ServletException {
        System.out.println("servletDemo02的init 初始化被调用");

    }

    @Override
    public ServletConfig getServletConfig() {
        return null;
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("servletDemo02 的service 被调用");

    }

    @Override
    public String getServletInfo() {
        return null;
    }

    @Override
    public void destroy() {
        System.out.println("servletDemo02 的destroy被调用 销毁");
    }
}
